Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Fix near_network::RoutingTableView::get_announce performance #5595

Merged
merged 2 commits into from
Dec 8, 2021

Conversation

pmnoxx
Copy link
Contributor

@pmnoxx pmnoxx commented Dec 3, 2021

While reading get_announce implementation, I noticed that for every AnnounceAccount read, we were writing it back to disk.
Let's simplify get_announce to avoid additional disk writes.

Based on top of #5512

TODO after this PR:

  • more cleanup of RoutingTableView

Testing:
We have tests for this code

@pmnoxx pmnoxx force-pushed the piotr-fix-get_announce_account branch 2 times, most recently from 1d1c77a to 5db1846 Compare December 3, 2021 02:08
@pmnoxx pmnoxx changed the title feat: Improve `near_network::RoutingTableView::get_announce feat: Improve near_network::RoutingTableView::get_announce performance Dec 3, 2021
@pmnoxx pmnoxx changed the title feat: Improve near_network::RoutingTableView::get_announce performance feat: Fix near_network::RoutingTableView::get_announce performance Dec 3, 2021
@pmnoxx pmnoxx force-pushed the piotr-fix-get_announce_account branch from 5db1846 to f05a82a Compare December 3, 2021 03:02
@pmnoxx pmnoxx self-assigned this Dec 3, 2021
@pmnoxx pmnoxx added A-network Area: Network C-bug Category: This is a bug C-enhancement Category: An issue proposing an enhancement or a PR with one. C-housekeeping Category: Refactoring, cleanups, code quality P-low Priority: low labels Dec 5, 2021
@near-bulldozer near-bulldozer bot merged commit 1dd1c1d into master Dec 8, 2021
@near-bulldozer near-bulldozer bot deleted the piotr-fix-get_announce_account branch December 8, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-network Area: Network C-bug Category: This is a bug C-enhancement Category: An issue proposing an enhancement or a PR with one. C-housekeeping Category: Refactoring, cleanups, code quality P-low Priority: low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants